﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using NDF.Security.Cryptography;
using NDF.Utilities;
using System;
using System.Security.Cryptography;

namespace NDF.Tests.Framework.Security
{
    [TestClass]
    public class AsymmetricAlgorithmsTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            //RSA rsa = RSA.Create();
            //var p = rsa.ExportParameters(true);
            
            ////Console.WriteLine(p.ToJson());
            ////Console.WriteLine(Convert.ToBase64String(p.Modulus));

            //RSAParameters parameter = new RSAParameters();
            //parameter.Exponent = Convert.FromBase64String("AQAB");
            //parameter.Modulus = Convert.FromBase64String("tCYOrw3Uey7yJzY9gdLXLWl1C293+tjNSi4bISBP3P+Yil8F3pz/WlqFPEdzkiv91TNCWZZek7GxhxmnHd6NjED0TomoISFa3H8MS/YaSlAiSWaUTGXVhBtls3vg6DIWHKkhKMjCQHfFnjrC9JB+L/H0j9bxzcExSRyUSwQQ4aU=");

            //Console.WriteLine(parameter.ToJson());

            string text = "ChenJianwei陈建伟<>:{}~!@#$%";
            Console.WriteLine(Convert.FromBase64String(text));
        }
    }
}
